package syan.label.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import syan.label.common.HprtPrintVO;
import syan.label.entity.dto.LabelPrint;
import syan.label.service.LabelService;

import java.util.List;

/**
 * @author CHENTAIWEN
 * @create 2022/12/2 11:28
 * @eo.api-type http
 * @eo.groupName 默认分组
 * @eo.path /label
 */
@RequestMapping("label")
@RestController
public class LabelController {
    @Autowired
    public LabelService labelService;

    /**
     * @param labelPrint
     * @return List
     * @eo.name createTag
     * @eo.url /createTag
     * @eo.method post
     * @eo.request-type formdata
     */
    @PostMapping("createTag")
    public List<HprtPrintVO> createTag(LabelPrint labelPrint) {
        return labelService.createTag(labelPrint);
    }

}
